package com.yq.day74.daili.jicheng;

import com.yq.day74.daili.jingtai.BuyFood;
import com.yq.day74.daili.jingtai.JingTian;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/07/04 16:19
 */

//静态代理 通过成员变量的方式
//代理类

public class ChangFeng2 extends JingTian implements BuyFood {
    JingTian delegate = new JingTian();
    @Override
    public void buyBreakFast() {
        System.out.println("鸡蛋");
        super.buyBreakFast();
        System.out.println("奶茶");

    }
}
